<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/commit/head.jsp" %>


<div class="layui-body">
	<div style="padding: 15px;">会员列表</div>
	<div class="layui-btn-group rolemanager">
		<button class="layui-btn" data-type ="update">修改</button>
		<button class="layui-btn" data-type ="del" id="del">删除</button>
	</div>
	<div >
	
	
	</div>
	<table class="layui-table" id="newuserTable">
	</table>
</div>
<div>
<form id="fm" style="display:none" class="layui-form" action="user/updateById.html" lay-filter="newuserUpdate">
			 <div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">用户角色：</label>
			      <div class="layui-input-inline">
			        <select name="roleid" >
						<option value="1">会员</option>
						<option value="2">管理员</option>
						<option value="11">其他</option>
			        </select>
			      </div>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">会员类型：</label>
			      <div class="layui-input-inline">
			        <select name="usertype" lay-search="" lay-verify="required">
						<option value="0">注册会员</option>
						<option value="1">消费会员</option>
						<option value="2">vip会员</option>
						<option value="3">加盟店</option>
			        </select>
			      </div>
			    </div>
			  </div>
			  
			<div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">用户名：</label>
			      <div class="layui-input-inline">
			        <input id="code" name="logincode" class="layui-input" type="text" autocomplete="off" lay-verify="required" >
			      </div>
			      <span id="namecheck"></span>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">姓名：</label>
			      <div class="layui-input-inline">
			        <input name="username" class="layui-input" type="text" autocomplete="off" lay-verify="required" >
			      </div>
			    </div>
			</div>
		
			<div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">证件类型：</label>
			      <div class="layui-input-inline">
			        <select name="cardtype">
						<option value="0">二代身份证</option>
						<option value="1">护照</option>
						<option value="2">军官证</option>
			        </select>
			      </div>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">证件号码：</label>
			      <div class="layui-input-inline">
			        <input name=idcard class="layui-input" type="text" autocomplete="off" lay-verify="required|identity" >
			      </div>
			    </div>
			</div>
			
			<div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">收获国家：</label>
			      <div class="layui-input-inline">
			        <select name="country">
						<option value="0">中国</option>
						<option value="1">美国</option>
			        </select>
			      </div>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">移动电话：</label>
			      <div class="layui-input-inline">
			        <input name="mobile" class="layui-input" type="text" autocomplete="off" lay-verify="required|phone" >
			      </div>
			    </div>
			</div>
			
			<div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">电子邮件：</label>
			      <div class="layui-input-inline">
			        <input name="email" class="layui-input" type="text" lay-verify="email|required" autocomplete="off" >
			      </div>
			    </div>

			<div class="layui-form-item">
			    <div class="layui-inline">
			      <label class="layui-form-label">开户行：</label>
			      <div class="layui-input-inline">
			        <input name="postcode" class="layui-input" type="text" autocomplete="off" lay-verify="required" >
			      </div>
			    </div>
			    <div class="layui-inline">
			      <label class="layui-form-label">开户卡号：</label>
			      <div class="layui-input-inline">
			        <input name="bankaccount" class="layui-input" type="text" autocomplete="off" lay-verify="required" >
			      </div>
			    </div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">开户人：</label>
				<div class="layui-input-block">
					<input type="text" name="accountholder"  autocomplete="off" lay-verify="required" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">上传身份证图片（正反面）：</label>
				<div class="layui-input-block">
					<input type="file" name="partFile1"  autocomplete="off" lay-verify="required" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">上传银行卡图片：</label>
				<div class="layui-input-block">
					<input type="file" name="partFile2"  autocomplete="off" lay-verify="required" class="layui-input">
				</div>
			</div>
			
		<div class="layui-form-item">
				<div class="layui-input-block">
					<input id="save" type="submit" lay-submit  class="layui-btn layui-btn-radius" value="保存" >
<!-- 					<input id="close" type="button" class="layui-btn layui-btn-radius" value="关闭" >
 -->				</div>
			</div>

		</form>
</div>
<script src="./layer/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/newuser.js"></script>
<%@include file="/WEB-INF/commit/dibu.jsp" %>